<!DOCTYPE HTML>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
		<link rel="stylesheet" type="text/css" href="../../css/style.css" />
		<style type="text/css">
			html,body{
				background-color: transparent !important;
			}
			.info_box{ position: fixed; left: 0; bottom: 0; width:100%; height: 260px; background-color: #fff; box-sizing: border-box; padding: 0; z-index: 12;}
			.info_box .top{
				display: flex;
				justify-content: space-between;
				background: #f5f5f5;
			}
			.info_box .top div { font-size: 15px; padding:0 10px; font-weight:600; color:#72757A; height: 50px; line-height: 50px; }
			
			.a-active { color:#3262F1 !important; }
		</style>
	</head>
	<body>
		<div id="filter" style="height:100%;">
			<div id="content">
			
			</div>
		</div>
	</body>
	<script type="text/javascript" src="../../script/api.js" ></script>
	<script type="text/javascript" src="../../script/app.js" ></script>
	<script type="text/javascript">
		var fromwin = '';
		var licencePlatekeyboard;
		apiready = function() {
			//api.parseTapmode();
			fromwin = api.pageParam.fromwin;
			licencePlatekeyboard = api.require('licencePlatekeyboard');
			licencePlatekeyboard.open(function(ret) {
				var curword = ret.clickListener;
				if(ret.clickListener != '删除')
				{
					if(isChinese(curword)) {
						if(curword != '浙') {
							toasttop('该省份未开通，将于近期开通');
							return false;
						}
					}
					
					api.execScript({
						name: fromwin+'_win',
						script: 'inputcarnum(\''+ret.clickListener+'\');'
					});
					
				}
				else
				{
					api.execScript({
						name: fromwin+'_win',
						script: 'backspacecarnum();'
					});
				}
				//alert(JSON.stringify(ret));
			});
			
			
		}
		function isChinese(str) {
			var reg = /^[\u4E00-\u9FA5]+$/;
			if(reg.test(str)){
				return true;
			}else{
				return false;
			}
		}
		function closeframe() {
			licencePlatekeyboard.close();
			api.closeFrame({
				name: api.frameName
			});
			//api.setFrameAttr({
				//name: 'settime_frm',
				//hidden: true
			//});
		}
	</script>
</html>